<div class="album wp-20" ui-view="container">

    <div ng-if="!noPermission">


        <div class="head_title">
            <span class="tit-color">协议管理</span>
        </div>
        <div class="searchWapper">
            <div class="form-group searchLump search-condition">
                <div class="searchTitle">搜索：</div>
                <div class="search-select">
                    <select ng-model="search.key"
                            ng-options="fileName.key  as fileName.value for fileName in fileNames" style="float: left;"></select>
                    <input type="text" class="input width-150" ng-model="search.value" style="margin-left: 20px"
                           ui-event="{ keyup : 'keyup($event,search.value)' }">
                    <input type="button" class="btn btn-primary" value="搜索" style="margin-top: -3px"
                           ng-click="findData()">

                </div>
            </div>

           <!-- <div class="form-group searchLump">
                <div class="searchTitle">筛选：</div>
                <div class="search-select">
                    <div style="display: inline-block;margin-left: 20px">
                        <input ims-select-range-time="rangeDate" placeholder="'CP注册时间'">
                    </div>
                    <select ng-model="search.reviewStatus" ng-change="selectChange()" style="margin-left: 21px"
                            ng-options="reviewStatus.key as reviewStatus.value for reviewStatus in reviewStatuses">
                    </select>
                    <select ng-model="search.status" ng-change="selectChange()"
                            ng-options="status.key as status.value for status in statuses">
                    </select>
                    <select ng-model="search.cplevel" ng-change="selectChange()"
                            ng-options="cplevel.key as cplevel.value for cplevel in levels">
                    </select>
                    <select ng-model="search.coopType" ng-change="selectChange()"
                            ng-options="coopType.key as coopType.value for coopType in coopTypes">
                    </select>
                </div>

            </div>
            <div class="form-group searchLump">
                <div class="searchTitle">操作：</div>
                <div class="search-select">
                    <a class="btn btn-primary" ng-click="disableSelected()" style="margin-left: 20px">禁用</a>
                </div>

            </div>-->
        </div>

        <div style="clear: both"></div>
        <div style="margin:15px  0px">
            <table class="table table-bordered table-hover table-page">

                <thead>
                <tr>

                    <th>CP_ID</th>
                    <th>昵称</th>
                    <th>账户名</th>
                    <th>CP性质</th>
                    <th>CP类型</th>
                    <th>操作{{table[examine.reviewErrorId]}}</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="examine in CPExamine">

                    <td>
                        {{examine.cpId}}
                    </td>
                    <td>
                        {{examine.nickName}}
                    </td>
                    <td>
                        {{examine.userName}}
                    </td>
                    <td>
                        {{table[examine.cpProperty]}}
                    </td>
                    <td>
                        {{table[examine.cpType]}}
                    </td>
                    <td>
                        <a ui-sref="main.agreement.agreementDetail({realName:examine.realName})">电子协议</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="panel-footer paging">
            <s-pagination conf="paginationConf"></s-pagination>
        </div>
    </div>

    <div ng-if="noPermission" ng-include="'templates/no-permission.html'">

    </div>

    <!--<a ui-sref="campaigns.detail({campaignsId:1})"  ui-sref-opts="{inherit:false}">aaaaa</a>-->
</div>

